package cn.flying.base.process.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @description: 工作流底层表查询通过接口
 * @author: lvyong
 * @date: 2023年02月16日 16:34
 * @version: 1.0
 */
@Mapper
public interface ActNativeQueryMapper {

    /**
     * 查询异常节点
     *
     * @param procInstId
     * @return
     */
    @Select("SELECT a.act_id_ FROM act_ru_execution a JOIN act_ru_deadletter_job b ON a.id_=b.execution_id_ AND a.tenant_id_=b.tenant_id_ WHERE a.proc_inst_id_=#{procInstId}")
    List<String> getExceptionActivityIds(String procInstId);



}
